<h1>首页</h1>

<script src='./assets/lib/jquery.js'></script>
<script src="./assets/js/common.js"></script>

<script>
    // xhr.setRequestHeader('Authorization', 'token值');
    $.ajax({
        url: '/my/user/userinfo',
        // headers: {
        //     // Authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI0OTAsImlhdCI6MTYzMjYzOTQ1MiwiZXhwIjoxNjMyNjQ2NjUyfQ.A2xrcnQ5YtP2Ij7IyOg6G9YsWLMRAGqs8TGfbxiFy2Q'
        //     Authorization: localStorage.getItem('token'),
        // },
        success: function(res) {
            console.log(res)
        }
    })
</script>